<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <ul>
        <h2>{{ student_answer1.review_test.test_name }}</h2>
        <span>{{ student_answer1.question.get_test_category_display }}</span>
        <span>姓名 : {{ student.realname }}</span>
        {% for s_answer in student_answer %}
            <li>
            p656467
                <h4>{{ s_answer.question.test_question_content }}({{  s_answer.question.max_score }})</h4>
{#                <span>{{ s_answer.answer }}</span>#}
                {% if s_answer.question.get_test_question_category_display == 3%}
                    <textarea name="" id="" cols="30" rows="10">
                    {{ s_answer.answer }}
                    </textarea>
                {% else %}
                    <span>{{ s_answer.answer }}</span>
                {% endif %}
                {% for answer in s_answer.question.a_question.all %}
                    {% if answer.answer_content == s_answer.answer %}
                        ({{ answer.answer_score }})
                    {% endif %}
                {% endfor %}
            </li>
        {% endfor %}
    </ul>
    <p>总分{{ sum_score }}(未计入主观题分数)</p>
</body>
</html>